package com.bdmc.smokesensor.dao;
 
//import java.awt.print.Pageable;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.bdmc.smokesensor.entity.User;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
 
public interface UserJPA extends JpaRepository<User,Integer>,JpaSpecificationExecutor<User>,Serializable {
   public List<User> findByName(String name);

   @Query(value="select new map(name as name,age as age,address as addr) from User u ")
   public List<Map<String,Object>> getMapDataTest();
}
